<div class="users index">
	<h1>Usuarios</h1>
	
	<div class="bs-old-docs">
	  <div class="container">
	    <?php echo $this->Html->link('  Nuevo Usuario', array('controller' => 'Users', 'action' => 'add'),  array('class' => 'glyphicon glyphicon-plus-sign btn btn-primary btn-lg' )); ?>
	  </div>
	</div>

	<table cellpadding="0" cellspacing="0" class="table table-striped">
	<tr>
			<th><?php echo $this->Paginator->sort('Usuario'); ?></th>
			<th>Rol</th>
			<th><?php echo $this->Paginator->sort('Creado'); ?></th>
			<th><?php echo $this->Paginator->sort('Modificado'); ?></th>
			<th class="actions"><?php echo __('Acciones'); ?></th>
	</tr>
	<?php
	
	foreach ($users as $user): ?>
	<tr>
		<td><?php echo h($user['User']['username']); ?>&nbsp;</td>
		<td><?php echo h($user['Group']['name']); ?>&nbsp;</td>
		<td><?php echo h($user['User']['created']); ?>&nbsp;</td>
		<td><?php echo h($user['User']['modified']); ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__(''), array('action' => 'view', $user['User']['id']), array('class' => 'glyphicon glyphicon-search')); ?>
			<?php echo $this->Html->link(__(''), array('action' => 'edit', $user['User']['id']), array('class' => 'glyphicon glyphicon-pencil')); ?>
			<?php echo $this->Form->postLink(__(''), array('action' => 'delete', $user['User']['id']),  array('class' => 'glyphicon glyphicon-trash'), __('Esta seguro que desea eliminar # %s?', $user['User']['id'])); ?>
		</td>
		
	</tr>
<?php endforeach; ?>


	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>	</p>

	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>


	

